package com.jueban.Vo;

import com.jueban.model.Announcement;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.Date;

@Data
public class AnnouncementVo extends ResultVo
{

    private Integer id;
    private String title;
    private String text;
    private Date createTime;

    public AnnouncementVo()
    {

    }

    public AnnouncementVo(Announcement announcement)
    {
        BeanUtils.copyProperties(announcement, this);
    }

}
